package com.neusoft.elmboot.service;

import java.math.BigDecimal;

import com.neusoft.elmboot.po.PointLog;

public interface PointLogService {

    //根据用户id和日期查询积分记录
    public int getPointLogByUserIdByTime(String userId);

    //保存积分记录
    public int savePointLog(PointLog il,BigDecimal amount);
    
    //每隔一段时间，根据用户id删除早期count条积分记录
    public int deletePointLogByUserIdByTime(String userId, Integer count);
    
    //删除过期的积分记录
    public int updatePointLog(String userId);
    
    //查询用户还有一天过期的积分
    public int getExpirationPointLogByUserId(String userId);
}
